<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>

${pu:reqSet('template', pu:get('com.yaodian100.ec.membermsg.entity.MemberMsgTemplate', pu:toLong(param.tempId))) }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/css/ddaccordion.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="/css/yaodian100backend.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="/css/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="/css/pageable.css" type="text/css" rel="stylesheet" media="screen" />
				
		<script src="/js/jquery-1.3.2.min.js" type="text/javascript" charset="UTF-8"></script>
		<script src="/js/jquery-ui-1.7.2.custom.min.js" type="text/javascript" charset="UTF-8"></script>
		<script src="/js/jquery.bgiframe.min.js" type="text/javascript" charset="UTF-8"></script>
		<script src="/js/midend_pageable.js" type="text/javascript" charset="UTF-8"></script>
		<script src="/js/ddaccordion.js" type="text/javascript" charset="UTF-8"></script>
		<script src="/js/ddaccordion-cfg.js" type="text/javascript" charset="UTF-8"></script>

</head>
<body>
<c-rt:if test="${!empty errMsg}">
<script>
$(function(){
	alert('${errMsg}');
});
</script>
</c-rt:if>
<c-rt:if test="${empty errMsg}">
<script>

	window.parent.toPreviewPage();

</script>
<table>

<tr>
<td>发送名单：</td><td>
<textarea rows="2" cols="100" style="height:30px">${orders }</textarea>
</td>
</tr>
<tr>
<td>发送时间：</td><td>
<c-rt:choose>
<c-rt:when test="${param.sendTime=='0'}">
	即时发送
</c-rt:when>
<c-rt:when test="${param.sendTime=='-1'}">
	离峰发送（24hr内）
</c-rt:when>
<c-rt:otherwise>
${param.sendTime }小时后(<fmt-rt:formatDate value="${sendDate }" pattern="HH:mm"/>)
</c-rt:otherwise>
</c-rt:choose>
</td>
</tr>
<tr>
<td>发送工具：</td><td>
<c-rt:if test="${param.type=='1'}">系统信</c-rt:if><c-rt:if test="${param.type=='2'}">短信</c-rt:if>
</td>
</tr>
<tr>
<td>接收方：</td><td>
<c-rt:if test="${param.sendTo=='memberReceiver'}">订购人</c-rt:if><c-rt:if test="${param.sendTo=='orderReceiver'}">收货人</c-rt:if>
</td>
</tr>
<tr>
<td>信件主旨：</td><td>
${template.subject }
</td>
</tr>
<tr>
<td>发送人：</td><td>
${pu:user().group.description}-${pu:user().username }
</td>
</tr>
<tr>
<td>范本：</td><td>

</td>
</tr>
</table>
</c-rt:if>
</body>
</html>